package com.egao.common.publicly.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 首页文章VO
 * @author pyx
 */
@Data
public class ArticleVO {

    @ApiModelProperty("文章id")
    private Integer id;

    @ApiModelProperty("栏目编号")
    private Integer categoryId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("点击量")
    private Integer hits;

    @ApiModelProperty("置顶  0.正常  1.置顶")
    private String topFlag;

    @ApiModelProperty("封面图")
    private String imgUrl;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty(value = "栏目名称")
    private String categoryName;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
}
